package com.yigo.bsc.app.assembler;

import com.yigo.bsc.api.dict.command.CreateDictItemCmd;
import com.yigo.bsc.api.dict.command.CreateDictTypeCmd;
import com.yigo.cuc.domain.dict.entity.DictItem;
import com.yigo.cuc.domain.dict.entity.DictType;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author chenzl
 */
@Mapper
public interface BscDictDTO2DmoAssembler {
    BscDictDTO2DmoAssembler INSTANCE = Mappers.getMapper(BscDictDTO2DmoAssembler.class);

    DictType toDmo(CreateDictTypeCmd source);

    DictItem toDmo(CreateDictItemCmd source);
}
